package com.example.zhunongzonghe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.zhunongzonghe.beans.ZnScenicEvaluateLikeBean;
import com.example.zhunongzonghe.entity.ZnScenicEvaluateLike;

/**
* @author 蔡某人
* @description 针对表【zn_scenic_evaluate_like】的数据库操作Service
* @createDate 2024-04-25 17:28:35
*/
public interface ZnScenicEvaluateLikeService extends IService<ZnScenicEvaluateLike> {

    /**
     * 用户点赞旅游景点评价
     * @param evaluateLikeBean
     * @return
     */
    void addLike(ZnScenicEvaluateLikeBean evaluateLikeBean, String userName);

    /**
     * 旅游景点评价是否被点赞
     * @param evaluateId
     * @param userId
     * @return
     */
    Boolean isLiked(Integer evaluateId,Integer userId);

    /**
     * 获取当前旅游景点评价的点赞数量
     * @param evaluateId
     * @return
     */
    Integer likeCounts(Integer evaluateId);
}
